#ifndef _ROS_H_
#define _ROS_H_

#include "iwebclassobject.h"
#include "fstream"
#include "sstream"
#include "Json.h"
#include "singleton.hpp"
#include "Logger.h"
#include "redisConnector.h"
#include "rosNodeManager.h"

#include <hiredis.h>
#include <boost/algorithm/string.hpp>
#include <string>
#include <vector>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>

class Ros : public dxy::easyWebServer::IwebClassObject
{
public: 
    void newConnect();
    void disConnect();
    void subNewConnect();
    void changeState();

private:
    uint16_t createPort();

private:

};

namespace dxy::reflect
{
CLASSOBJECTINIT(Ros)
CLASSFUNCREGISTER(Ros, newConnect)
CLASSFUNCREGISTER(Ros, disConnect)
CLASSFUNCREGISTER(Ros, subNewConnect)
CLASSFUNCREGISTER(Ros, changeState)

}



#endif